import request from '@/common/request.js'

const api = {}

api.login = params => request.globalRequest(`/api/shop/user/login`, 'POST', params, 1,'登录中')
api.resetPwd = params => request.globalRequest(`/api/shop/user/resetpwd`, 'POST', params, 1,'重置中')
api.getCode = params => request.globalRequest(`/api/shop/user/getCode`, 'POST', params, 1,'获取验证码中')


/**
 * 数据
 * 
 */
api.dataIndex = params => request.globalRequest(`/api/shop/data/index`, 'POST', params, 1,'')


 
/**
 * 美团
 */
api.mtIndex = params => request.globalRequest(`/api/shop/mt/index`, 'POST', params, 1,'')
api.mtCate = params => request.globalRequest(`/api/shop/mt/getCate`, 'POST', params, 1,'')
api.mtProduct = params => request.globalRequest(`/api/shop/mt/getProductList`, 'POST', params, 1,'')
api.mtOrderList = params => request.globalRequest(`/api/shop/mt/getOrderList`, 'POST', params, 1,'')



api.commonIndex = params => request.globalRequest(`/api/shop/common/info`, 'POST', params, 1,'')


api.onlineIndex = params => request.globalRequest(`/api/shop/online/index`, 'POST', params, 1,'')
api.onlineCateList = params => request.globalRequest(`/api/shop/online/cateList`, 'POST', params, 1,'')
api.onlineGoodsList = params => request.globalRequest(`/api/shop/online/goodsList`, 'POST', params, 1,'')
api.onlineCaiGoodsList = params => request.globalRequest(`/api/shop/online/caiGoodsList`, 'POST', params, 1,'')
api.onlineGoodsDetail = params => request.globalRequest(`/api/shop/online/detail`, 'POST', params, 1,'')


api.onlineOrderList = params => request.globalRequest(`/api/shop/online/orderList`, 'POST', params, 1,'')

api.onlineOrderDetail = params => request.globalRequest(`/api/shop/online/orderDetail`, 'POST', params, 1,'')

api.onlineConfrim = params => request.globalRequest(`/api/shop/order/onlineConfrim`, 'POST', params, 1,'确认中')
api.sendKd = params => request.globalRequest(`/api/shop/order/sendKd`, 'POST', params, 1,'处理中')

api.sendTc = params => request.globalRequest(`/api/shop/order/sendTc`, 'POST', params, 1,'发送中')




api.shopInfo = params => request.globalRequest(`/api/shop/shop/info`, 'POST', params, 1,'')
api.shopUpdate  = params => request.globalRequest(`/api/shop/shop/update`, 'POST', params, 1,'修改中')

api.logout  = params => request.globalRequest(`/api/shop/user/logout`, 'POST', params, 1,'退出中')


api.hotelList  = params => request.globalRequest(`/api/shop/hotel/index`, 'POST', params, 1,'')
api.hotelAdd  = params => request.globalRequest(`/api/shop/hotel/add`, 'POST', params, 1,'添加中')
api.hotelDel  = params => request.globalRequest(`/api/shop/hotel/del`, 'POST', params, 1,'删除中')
api.lookCode  = params => request.globalRequest(`/api/shop/hotel/lookCode`, 'POST', params, 1,'')

api.configInit  = params => request.globalRequest(`/api/shop/money/configInit`, 'POST', params, 1,'')
api.verify  = params => request.globalRequest(`/api/shop/money/verify`, 'POST', params, 1,'实名中')
api.addBank  = params => request.globalRequest(`/api/shop/money/addBank`, 'POST', params, 1,'添加中')

api.withDrawList  = params => request.globalRequest(`/api/shop/money/withDrawList`, 'POST', params, 1,'')

api.doShopWithDraw  = params => request.globalRequest(`/api/shop/money/doShopWithDraw`, 'POST', params, 1,'提交中')

api.device  = params => request.globalRequest(`/api/shop/device/getDevice`, 'POST', params, 1,'提交中')

api.addChargeOrder  = params => request.globalRequest(`/api/shop/charge/addOrder`, 'POST', params, 1,'提交中')

api.getNoticeSet  = params => request.globalRequest(`/api/shop/common/notice`, 'POST', params, 1,'')
api.setNotice  = params => request.globalRequest(`/api/shop/common/setNotice`, 'POST', params, 1,'设置中')
api.outComeList  = params => request.globalRequest(`/api/shop/money/outComeList`, 'POST', params, 1,'')


api.addressList = params => request.globalRequest(`/api/app/useraddress/addressList`, 'POST', params, 1,'')

api.addAddress = params => request.globalRequest(`/api/app/useraddress/addAddress`, 'POST', params, 1,'添加中')
api.editAddress = params => request.globalRequest(`/api/app/useraddress/editAddress`, 'POST', params, 1,'修改中')
api.defaultAddress = params => request.globalRequest(`/api/app/useraddress/defaultAddress`, 'POST', params, 1,'')

api.addCaiOrder = params => request.globalRequest(`/api/shop/cai/addOrder`, 'POST', params, 1,'提交订单中')
api.caiOrderList = params => request.globalRequest(`/api/shop/cai/orderList`, 'POST', params, 1,'')
api.caiOrderDetail = params => request.globalRequest(`/api/shop/cai/orderDetail`, 'POST', params, 1,'')
api.caiPay = params => request.globalRequest(`/api/shop/cai/pay`, 'POST', params, 1,'支付中')





export default api